namespace Network 
{
    public enum MsgType
    {
        KCP_KEEPALICE = 0,
        STRUCT = 1,
        PB = 2,
        JSON = 3,
        JSON_REQUEST = 4,
        JSON_RESPONSE = 5
    }

    public class MsgObject
    {
        public MsgObject(ushort f_id, byte[] f_buf, MsgType type)
        {
            m_msgID = f_id;
            m_msgBody = f_buf;
            this.type = type;
        }
        private ushort m_msgID;
        private byte[]  m_msgBody;
        public object m_deserializeBody;

        public ushort msgID
        {
            get { return m_msgID; }
            set { m_msgID = value; }
        }

        public byte[] msgBody
        {
            get { return m_msgBody; }
            set { m_msgBody = value; }
        }

        public MsgType type { get; private set; }
    }

}